package com.study.talk.netty.message.response;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("发出单聊信息的客户端的消息回响")
public class MessageSelfResponse extends TalkMessage {

    private Integer receiverId;

    private Integer sendId;

    private Integer groupId;
    private String content;

    private Integer messageType = 0;
    private Boolean success;

    @Desc("原因")
    private String reason;

    @Override
    public byte getType() {
        return MessageType.MESSAGE_SELF_RESPONSE;
    }

    public MessageSelfResponse(Integer receiverId, Integer sendId,Integer groupId, String content,Integer messageType,Boolean success, String reason) {
        this.receiverId = receiverId;
        this.sendId = sendId;
        this.groupId = groupId;
        this.content = content;
        this.messageType = messageType;
        this.success = success;
        this.reason = reason;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public MessageSelfResponse() {
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getSendId() {
        return sendId;
    }

    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }
}
